

/**
 * Class representing an input Neuron, transform a pixel value ( range 0 - 31 ) into a suitable input
 * value for the neural network ( range 0 - 1 ) 
 *
 */
public class InputNeuron extends AbstractNeuron {

	private double pixelValue;
	
	@Override
	protected double activationFunction(double e) {
		// This function should not be called 
		assert(false);
		return 0;
	}

	@Override
	protected double activationFunctionDerivative(double e) {
		// This function should not be called
		assert(false);
		return 0;
	}
	
	@Override
	public void computeValue() {
		this.value = pixelValue / 31.0;
	}

	public void setPixelValue(double pixelValue) {
		this.pixelValue = pixelValue;
	}

}
